﻿package {
	import flash.display.Sprite;
	import com.kerry.util.ObjectUtil;
	/**
	 * com.kerry.util.ObjectUtil 类的演示文件
	 * @author PhoenixKerry（http://blog.sina.com.cn/yyy98）
	 */
	public class ObjectUtilDemo extends Sprite {
		
		public function ObjectUtilDemo() {
			var person:Object = { };
			person.name = "kerry";
			person.age = 23;
			person.city = "Beijing";
			
			var programmer:Person = new Person();
			//var programmer:Object = new Object();
			ObjectUtil.copyProperties(person, programmer);
			trace(programmer.name, programmer.age);// kerry 23
		}
		
	}
}

class Person {
	public var name:String;
	public var age:uint;
}